namespace go user
include "common.thrift"
struct User{
	1:  i64    ID             (api.body = "id")
	3:  string Account        (api.none = 'account')
	4:  i64    LastLoginTime  (api.none = 'last_login_time')
	5:  i64    CreateTime     (api.none = 'create_time')
	6:  string Avatar         (api.body = 'avatar')
	2:  string FirstName      (api.body = 'first_name')      //
	7:  string LastName       (api.body = 'last_name')       // 昵称
}

struct LoginRequest{
	1:  string Account   (api.body = 'account')
	2:  string Password  (api.body = 'password')
}

struct LoginResponse{
	1:  string Token  (api.body = 'token')
}

struct RegisterRequest{
	2:  string Password    (api.body = 'password')    // 密码
	3:  string Email       (api.body = 'email')       // 邮箱
	4:  string RePassword  (api.body = 're_password') // 重复密码
	5:  string Code        (api.body = 'code')        // 验证码
	6:  string FirstName   (api.body = 'first_name')  //
	7:  string LastName    (api.body = 'last_name')   // 昵称
}

struct RegisterResponse{

}

struct SendEmailRequest{
	1:  string               Email  (api.body = 'email')
	2:  common.SendEmailType Type   (api.body = 'type')
}

struct SendEmailResponse{

}

struct LogoutRequest{

}

struct LogoutResponse{

}

struct GetUserInfoRequest{

}

struct GetUserInfoResponse{
	1:  User Data  (api.body = 'data')
}
